﻿
namespace SeedObject
{
    public abstract class Validation<T> : Func<bool, T>
        where T : ISeed
    {
        string _Help = string.Empty;
        public string Help
        {
            get
            {
                if (string.IsNullOrEmpty(_Help))
                    return string.Concat(
                        Chains.Error,
                        Chains.WhenRunningValidation.ToLower(Utility.CultureInfo),
                        Chains.In.ToLower(Utility.CultureInfo),
                        Context.Article.ToLower(Utility.CultureInfo),
                        Chains.Space,
                        Context.Kind.ToLower(Utility.CultureInfo),
                        Chains.Space,
                        Context.Id);
                return _Help;
            }
            set
            {
                _Help = value;
            }

        }
    }
}
